﻿using Budget.Core.DomainModel;
using Budget.Core.Specifications.Base;

namespace Budget.Core.Specifications
{
    public static class CommonSpecifications
    {
         public static ISpecification<T> ById<T>(int id) where T : BaseEntity
         {
             return new QuerySpecification<T>(e => e.Id == id);
         }
    }
}